﻿<UserControl x:Class="BlueCrestStudio.DataVirtualization.Client.Views.StockXamGridView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:ig="clr-namespace:Infragistics.Controls.Grids;assembly=InfragisticsWPF4.Controls.Grids.XamGrid.v13.1"
             mc:Ignorable="d" 
             d:DesignHeight="800" d:DesignWidth="600">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <Expander Grid.Row="0" Header="Parameters" IsExpanded="True">
            <Grid MinHeight="200">

            </Grid>
        </Expander>

        <GroupBox Grid.Row="1" Header="Stock Data">
            <ig:XamGrid ItemsSource="{Binding Items}" AutoGenerateColumns="false" 
                        ColumnSorting="XamGrid_OnColumnSorting"
                        
                        >
                <ig:XamGrid.Columns>
                    <ig:TextColumn Key="Id" />
                    <ig:TextColumn Key="Symbol" />
                    <ig:TextColumn Key="Bid" />
                    <ig:TextColumn Key="Ask" />
                    <ig:TextColumn Key="Country" />
                    <ig:TextColumn Key="Date" />
                    <ig:TextColumn Key="High" />
                    <ig:TextColumn Key="High2" />
                    <ig:TextColumn Key="High3" />
                    <ig:TextColumn Key="Low"/>
                    <ig:TextColumn Key="Low2"/>
                    <ig:TextColumn Key="Low3"/>
                    <ig:TextColumn Key="Mid"/>
                    <ig:TextColumn Key="Volume"/>
                </ig:XamGrid.Columns>

                <ig:XamGrid.SortingSettings>
                    <ig:SortingSettings AllowSorting="True"/>
                </ig:XamGrid.SortingSettings>
                <ig:XamGrid.RowSelectorSettings>
                    <ig:RowSelectorSettings Visibility="Visible" EnableRowNumbering="True" />
                </ig:XamGrid.RowSelectorSettings>

                <ig:XamGrid.DeferredScrollingSettings>
                    <ig:DeferredScrollingSettings AllowDeferredScrolling="Default"/>
                </ig:XamGrid.DeferredScrollingSettings>
                
                <ig:XamGrid.PagerSettings>
                    <ig:PagerSettings AllowPaging="Both" PageSize="1000" />
                </ig:XamGrid.PagerSettings>
                
                <ig:XamGrid.GroupBySettings>
                    <ig:GroupBySettings AllowGroupByArea="Top"  GroupByOperation="GroupByRows"/>
                </ig:XamGrid.GroupBySettings>
                
                <ig:XamGrid.FilteringSettings>
                    <ig:FilteringSettings AllowFiltering="FilterRowTop" />
                </ig:XamGrid.FilteringSettings>
            </ig:XamGrid>
        </GroupBox>

        <StatusBar Grid.Row="2">
            <Label Content="MemoryUsage: "/>
            <TextBlock Text="{Binding MemoryUsage}"/>
        </StatusBar>
    </Grid>
</UserControl>
